// 1.app广告，点击关闭，隐藏app这个div
var close = document.getElementsByClassName('close-app')[0];

var app = document.getElementsByClassName('app')[0]
close.onclick = function(){
    app.style.display = 'none';
}

// 2.导航条颜色改变
var search_header = document.getElementById('search-header');

window.onscroll = function(){
    var scroll_height = window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;
    console.log(scroll_height);
    if(scroll_height >= 250){
        search_header.style.backgroundColor = 'orange';
    }
    else{
        search_header.style.backgroundColor = 'transparent';
    }

}



